﻿//
//   Copyright (c) 2016  All rights reserved.
//

using System;
using UnityEngine.Scripting;

namespace WzhModule.GM
{

#if STRIP_DBG_SETTINGS
    [System.Diagnostics.ConditionalAttribute("FALSE")]
#endif
#if !STRIP_DBG_SETTINGS
    [Preserve]
#endif
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class WzhGMField : Attribute
    {
        public string FieldName;

        public float StartF = 0f;
        public float EndF = 1.0f;
        public float Size = 400f;

        public WzhGMField()
        {

        }

        public WzhGMField(string name)
        {
            FieldName = name;
        }

        public WzhGMField(float start, float end) : this(start, end, "")
        {
        }

        public WzhGMField(float start, float end, string name, float size = 400f)
        {
            StartF = start;
            EndF = end;
            FieldName = name;
            Size = size;
        }

    }

}
